package com.imy.luascript.retrofit;


/**
 * @ProjectName: frame
 * @Package: com.imy.frame.listener
 * @ClassName: RequestCallBackListener
 * @Description: 描述
 * @Author: Imy
 * @CreateDate: 2020/10/30 16:17
 */
public abstract class RequestCallBackListenerImpl<T> extends OnRequestCallBackListener<T> {

    @Override
    public void onSuccess(T data) {
        onGetData(data);
    }

    public abstract void onGetData(T data);

    @Override
    public void onError(ApiException error) {
        //ToastUtils.show(error.getMessage());
    }
}